home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / nShell™ drop / bin / man / man.rsrc / TEXT_16170_man until general.txt < prev    next >
Encoding:
Text File  |  1994-09-15  |  628 b   |  27 lines

  1.  
  2. NAME
  3.  
  4. until - conditional execution
  5.  
  6. SYNOPSIS
  7.  
  8. until <commands1> do <commands2> done
  9.  
  10. DESCRIPTION
  11.  
  12. In this structure, the <commands1> clause will always execute.  If the result of the last command of the set produces an error (result <> zero), then the <commands2> clause will be executed.  Control will then return to the <commands1> clause, and the process will continue until the last command of this set completes without error (result = 0).
  13.  
  14. Flow of control statements are available in nShell-Pro(tm)
  15.  
  16. RETURN CODES
  17.  
  18. <0    Error
  19. 0    Success
  20.  
  21. SEE ALSO
  22.  
  23. while, if
  24.  
  25. EXAMPLES
  26.  
  27. until yesno "Should I STOP saying hello?" do hello done